package com.example.other.enums;

public enum OrderStates {
    CANCELLED(0, "已取消"),
    ORDERED(1, "已下单"),
    PAID(2, "已付款"),
    NOT_ARCHIVED(3, "未归档"),
    ARCHIVED(4, "已归档"),
    EXPIRED(5, "已过期"),
    REFUNDED(6,"已退款");

    private final int code;
    private final String dec;

    OrderStates(int code, String dec) {
        this.code = code;
        this.dec = dec;
    }

    public int getCode() {
        return code;
    }

    public String getDec() {
        return dec;
    }
}
